/*
 * @Author: hy 
 * @Date: 2018-04-28 10:27:42 
 * @Last Modified by: mikey.zhaopeng
 * @Last Modified time: 2018-06-30 20:47:12
 * 首页样式
 */

@import '../theme.less';

// 底部tab高度
@footer-height:4.9rem;

.home-wrap {
  height: 100%;
  overflow: hidden;
  .home-content{
    padding-top:@navbar-height;
    height: calc(~'100% - 4.9rem');
    overflow: hidden;
  }
  .home-footer{
    height: @footer-height;
    border-top: @border-base;
    .tab-bar{
      display: flex;
      justify-content: space-around;
      align-items: center;
      li{
        display: inline-block;
        width:  @footer-height;
        height: @footer-height;
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        align-items: center;
        span:last-child{
          font-size: @font-size0;
          color: @color-font-gray2;
        }
      }
    }
  }
}


// 大厅样式

// 广告栏高度
@ad-height:160px;
// 播报兰高度
@bc-height:30px;

.hall-wrap{
  background: @color-back-gray2;
  .header{
    height: @ad-height;
    overflow: hidden;
    position: relative;
    background: white;
    a{
      display: inline-block;
      width: 100%;
      height:  @ad-height;
      img{
        width: 100%;
        height: 100%;
        vertical-align: top;
      }
    }
    // 播报兰
    .broadcast-bar{
      height: @bc-height;
      position: absolute;
      top: 0;
      left: 0;
      right: 0;

      .broadcast-item{
        height: @bc-height;
        padding: 0 @space-middle;
        text-align: center;
        color: white;
        font-size: @font-size3;
        background: rgba(0,0,0,.5);
        line-height: @bc-height;
      }
    }
  }
  // 热门推荐
  .hot-module{
    background: white;

    .title-bar{
      border-bottom: @border-base;
      padding: @space-middle;
      display: flex;
      justify-content: space-between;
      >span:first-child{
        font-size: @font-size7;
        color: @color-font-black;
        letter-spacing: 3.2px;
        font-weight: bold;
      }
      >span:last-child{
        font-size: @font-size3;
        color: @color-font-black;
        display: flex;
        align-items: center;
        .app-icon{
          width: 22px;
          height: 22px;
        }
      }
    }
    .hot-item{
      background: white;
      padding: @space-middle;
      .hot-header{
        display: flex;
        justify-content: space-between;
        font-size: @font-size3;
        color: @color-font-gray;
      }
      .hot-content{
        padding: @space-big;
        font-size:@font-size6;
        color: @color-font-black;
        letter-spacing: 1.15px;
        font-weight: bold;
        display: flex;
        justify-content: space-around;
        align-items: center;
      }
      .hot-footer{
        display: flex;
        justify-content: space-around;
        align-items: center;
        span{
          border:1px solid @color-back-red;
          padding:@space-base;
          color: @color-font-red;
          border-radius: @border-radius-base;
        }
      }
    }
  }


  // 彩种列表
  .lottery-list{
    display: flex;
    flex-wrap: wrap;
    background: white;
    padding: @space-base;
    justify-content: flex-start;
    .lottery-list-item{
      width: 33.33%;
      padding: @space-base 0;
      position: relative;
      &:active{
        background: @color-back-gray2;
        .lotter-logo{
          transform: translate3d(0,-3px,0) scale(1.07);
        }
      }
  
      .lotter-logo{
        width: 5.5rem;
        height: 5.5rem;
        transition: all 250ms ease-in;
      }
      .lottery-list-item-name{
        margin-top: @space-base ;
        font-size: @font-size2;
        color: @color-font-gray;
      }
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
    }

    .lottery-list-item.stopScale{
      filter: grayscale(1);
      -webkit-filter: grayscale(1);
    }
    .flag-jrkj{
      position: absolute;
      top: 0;
      right: 0.7rem;
      width: 5rem;
      height: 3.4rem;
    }
    .flag-ts{
      position: absolute;
      bottom: 3.4rem;
      width: 5.5rem;
      padding: @space-sm 0;
      border:@border-base;
      background: @color-back-gray2;
      color: @color-font-black;
      font-size: @font-size1;
      text-align: center;
    }
  }

  // 中奖榜
  @item-height:3rem;

  .win-list-box{
    background: white;
    .title-bar{
      border-bottom: @border-base;
      padding: @space-middle;
      display: flex;
      justify-content: space-between;
      >span:first-child{
        font-size: @font-size7;
        color: @color-font-black;
        letter-spacing: 3.2px;
        font-weight: bold;
      }
    }
    .win-list{
      max-height: 5* @item-height+@space-middle;
      overflow: auto;
      -webkit-overflow-scrolling: touch;
      line-height: @item-height;
      font-size: @font-size3;
      color: @color-font-gray;
      padding: @space-middle;
    }
  }
}